package org.batyrov.equery.action.terminal;

import org.batyrov.equery.action.BaseAction;
import org.batyrov.equery.action.Const;
import org.batyrov.equery.bean.Service;

import java.util.Collection;

/**
 * Created by IntelliJ IDEA.
 * User: admin
 * Date: 12.09.2009
 * Time: 21:32:53
 * To change this template use File | Settings | File Templates.
 */
public class Main extends BaseAction{
    private Collection<Service> services;

    public Collection<Service> getServices() {
        return services;
    }

    public void setServices(Collection<Service> services) {
        this.services = services;
    }

    @Override
    public String execute() throws Exception {
        super.execute();
        services = dao.getAllService();
        return Const.SUCCESS;
    }
}
